import { request } from "@/utils/request";

// 手动反水
export function reqBackWaterList(params: Record<string, any>) {
  return request({
    url: "/roomManage/user/backWater/list",
    method: "get",
    params
  });
}

// 手动反水-发放
export function reqUserBackWaterGrant(Id: number) {
  return request({
    url: "/roomManage/user/backWater/grant",
    method: "post",
    data: {
      Id
    }
  });
}

// 手动反水-拒绝
export function reqUserBackWaterReject(Id: number) {
  return request({
    url: "/roomManage/user/backWater/reject",
    method: "post",
    data: {
      Id
    }
  });
}

// 反水设置展示
export function reqBackWaterSetting() {
  return request<BackWaterSettingMo["GameConfig"]>({
    url: "/roomManage/backWater/setting/show",
    method: "get"
  });
}

// 反水设置-批量修改
export function reqBackWaterSettingBatch(data: Record<string, any>) {
  return request({
    url: "/roomManage/backWater/setting/batch",
    method: "post",
    data
  });
}
